package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._10观察者模式._4老板回来通知3;

//看NBA同事类
class NBAObserver extends Observer{
    public NBAObserver(String name,Subject sub){
        super(name,sub);
    }

    public void update(){
        System.out.println(super.sub.name+"："+super.sub.getAction()+"！"+super.name+"，请关闭NBA直播，赶紧工作。");
    }
}
